//
//  ZYCRoleTreeModel.m
//  ZDSC
//
//  Created by ZDTX on 2021/8/3.
//

#import "ZYCRoleTreeModel.h"
@interface ZYCRoleTreeModel ()<NSCoding>

@end
@implementation ZYCRoleTreeModel

#pragma mark - NSCoding delegate
//归档
-(void) encodeWithCoder:(NSCoder *)aCoder{
    [self yy_modelEncodeWithCoder:aCoder];
}

//解档
-(id) initWithCoder:(NSCoder *)aDecoder
{
    self = [super init];
    return [self yy_modelInitWithCoder:aDecoder];
}



+(NSDictionary *) modelCustomPropertyMapper{
    return @{@"r_id" : @"id"};
}

+(NSDictionary *) modelContainerPropertyGenericClass {
    return @{@"children" : [ZYCRoleTreeModel class]};
}

- (NSInteger)selectedCnt{
    return self.selectArr.count;
}

@end
